﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace ExamServer.Migrations
{
    public partial class addTestColumn : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DeleteData(
                table: "tbUsers",
                keyColumn: "Id",
                keyValue: new Guid("9e7e6d42-a62f-4c7d-8620-224d58a3910a"));

            migrationBuilder.DeleteData(
                table: "tbUsers",
                keyColumn: "Id",
                keyValue: new Guid("bb85a6f4-cac0-4e62-9179-ca79acc548e6"));

            migrationBuilder.AddColumn<string>(
                name: "Test",
                table: "tbUsers",
                nullable: true);

            migrationBuilder.InsertData(
                table: "tbUsers",
                columns: new[] { "Id", "Birthday", "Email", "Name", "Password", "Remark", "Test" },
                values: new object[] { new Guid("c655309a-df68-4249-af7c-7faf6b244960"), "1990-01-01", "zhangsan@163.com", "张三", "123456", null, null });

            migrationBuilder.InsertData(
                table: "tbUsers",
                columns: new[] { "Id", "Birthday", "Email", "Name", "Password", "Remark", "Test" },
                values: new object[] { new Guid("a1bde433-eecf-4012-b458-964f9dbd3d9a"), "1992-01-01", "lisi@qq.com", "李四", "123456", null, null });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DeleteData(
                table: "tbUsers",
                keyColumn: "Id",
                keyValue: new Guid("a1bde433-eecf-4012-b458-964f9dbd3d9a"));

            migrationBuilder.DeleteData(
                table: "tbUsers",
                keyColumn: "Id",
                keyValue: new Guid("c655309a-df68-4249-af7c-7faf6b244960"));

            migrationBuilder.DropColumn(
                name: "Test",
                table: "tbUsers");

            migrationBuilder.InsertData(
                table: "tbUsers",
                columns: new[] { "Id", "Birthday", "Email", "Name", "Password", "Remark" },
                values: new object[] { new Guid("bb85a6f4-cac0-4e62-9179-ca79acc548e6"), "1990-01-01", "zhangsan@163.com", "张三", "123456", null });

            migrationBuilder.InsertData(
                table: "tbUsers",
                columns: new[] { "Id", "Birthday", "Email", "Name", "Password", "Remark" },
                values: new object[] { new Guid("9e7e6d42-a62f-4c7d-8620-224d58a3910a"), "1992-01-01", "lisi@qq.com", "李四", "123456", null });
        }
    }
}
